Skip to content

Handle bait and switch resources in ACA#9225

Merged
davidfowl merged 1 commit intomainfrom
davidfowl/aca-bait-and-switch
May 10, 2025
Merged

Handle bait and switch resources in ACA#9225
davidfowl merged 1 commit intomainfrom
davidfowl/aca-bait-and-switch

Conversation

@davidfowl
Copy link
Copy Markdown
Contributor

Description

  • Discovered while fixing issues in docker compose, we don't properly handle bailt and switch resources properly. Since we remove and add a new resource, we end up needing to treat both as the same resource when we encounter it.
  • Added test for aca and app service (which is missing this feature)

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
  • Did you add public API?
    • No
  • Does the change make any security assumptions or guarantees?
    • No
  • Does the change require an update in our Aspire docs?
    • No

- Discovered while fixing issues in docker compose, we don't properly handle bailt and switch resources properly. Since we remove and add a new resource, we end up needing to treat both as the same resource when we encounter it.
- Added test for aca and app service (which is missing this feature)
@github-actions github-actions bot added the area-integrations Issues pertaining to Aspire Integrations packages label May 10, 2025
@davidfowl davidfowl added area-deployment and removed area-integrations Issues pertaining to Aspire Integrations packages labels May 10, 2025
@davidfowl davidfowl added this to the 9.3 milestone May 10, 2025
@davidfowl davidfowl enabled auto-merge (squash) May 10, 2025 06:41
}

[Fact]
public async Task AzureAppServiceDoesNotSupportBaitAndSwitchResources()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should you rename this test now that its fixed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is app service. When I add support for containers then this will be relevant.

@davidfowl davidfowl merged commit 615494b into main May 10, 2025
171 checks passed
@davidfowl davidfowl deleted the davidfowl/aca-bait-and-switch branch May 10, 2025 06:48
@github-actions github-actions bot locked and limited conversation to collaborators Jun 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants